<template>
  <div>
    <TopTitle :texttitle="'房屋管理'" :gourl="'/home/profile'"></TopTitle>
    <HouseList @requestApi="requestApi" :renderList="bodyData"></HouseList>
  </div>
</template>

<script>
import TopTitle from '@/components/TopTitle.vue'
import HouseList from '@/components/HouseList.vue'
import { houses } from '@/api/Interface'

export default {
  name: 'myrent',
  components: {
    TopTitle,
    HouseList
  },
  data(){
    return{
      bodyData:[]
    }
  },
  methods:{
    async requestApi(){
      const {body} = await houses()
      console.log(body);
      this.bodyData = body
    }
  }
}
</script>

<style></style>
